local socket = require("socket")
print(socket._VERSION)

local m_url = "http://localhost:8080/"
local http = require("socket.http")

-- sets the timeout for all I/O operations; 
http.TIMEOUT = 10
-- print(http.PORT)

-- 直接访问地址
local response = http.request(m_url)
print(response)


-- 查看socket中的字段
for k,v in pairs(socket) do
	print(k,v)
end

-- 输出 1480132712.1869
local time = socket.gettime()
print(time)

-- 输出 1480132712
time = os.time()
print(time)

